xen/arm64: config: Correctly define VMAP_VIRT_END
authorPeng Fan <van.freenix@gmail.com>
Wed, 1 Jun 2016 07:51:06 +0000 (15:51 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 17 Jun 2016 09:22:16 +0000 (10:22 +0100)
commit63b624140a5b1123acb18ad97e7bb12190667bac
treebf8fdb68a96f2ff620288bf0528db35b340c7149
parent014e7d939405783984bd6b80501149038a62b17b
xen/arm64: config: Correctly define VMAP_VIRT_END

The vmap initialization code (vm_init_type) will round down
the end of the region to a page-aligned address.

On ARM64, the default vmap region is located between 1G and 2G.
Based on the initialization code, the end address is excluded
of the region.

Therefore the current definition of VMAP_VIRT_END will lead the
vmap code to not use the last 4K of the region.

Fix it by defining VMAP_VIRT_END as "VMAP_VIRT_START + GB(1)".

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/config.h